package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.CorpEmployesUser;
import com.voltmao.persistent.model.CorpEmployesUserCriteria;

import java.util.List;
import java.util.Map;

public interface CorpEmployesUserMapper {
    int countByExample(CorpEmployesUserCriteria example);
    int countByExampleWithOrg(CorpEmployesUserCriteria example);

    int deleteByExample(CorpEmployesUserCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(CorpEmployesUser record);

    int insertSelective(CorpEmployesUser record);

    List<CorpEmployesUser> selectByExample(CorpEmployesUserCriteria example);


    CorpEmployesUser selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") CorpEmployesUser record, @Param("example") CorpEmployesUserCriteria example);

    int updateByExample(@Param("record") CorpEmployesUser record, @Param("example") CorpEmployesUserCriteria example);

    int updateByPrimaryKeySelective(CorpEmployesUser record);

    int updateByPrimaryKey(CorpEmployesUser record);

    CorpEmployesUser selectByExampleForOne(CorpEmployesUserCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(CorpEmployesUserCriteria example);

    List<Map<String, Object>> selectMapByExample(CorpEmployesUserCriteria example);

    int CountOrgEmplNum(String orgId);
    List<Map<String, Object>> selectByExampleWithOrg(CorpEmployesUserCriteria example);
    String getApplierNameByContractId(@Param("cpId") String cpId);

    /**
     * 获取商务部人员列表
     * @return
     */
    List<Map<String, Object>> getBusinessPersonnel();

    CorpEmployesUser getUserByProviderId(@Param("providerId") String providerId);

}